package StudyCode.summary.mycollection;

import java.util.TreeSet;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class RemoveAllElementsFromTreeSet {
	public static void main(String[] args) {
		TreeSet tSet = new TreeSet();
		tSet.add(new Integer("1"));
		tSet.add(new Integer("2"));
		tSet.add(new Integer("3"));

		System.out.println("TreeSet 清空前 : " + tSet);
		tSet.clear();
		System.out.println("TreeSet 清空后 : " + tSet);
	}
}
